<!--
 * @Author: yangrui63 yangrui63@gdii-yueyun.com
 * @Date: 2022-10-21 09:18:13
 * @LastEditors: yangrui63 yangrui63@gdii-yueyun.com
 * @LastEditTime: 2022-10-31 14:56:28
 * @FilePath: \shop-admin\src\views\login\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>登录</div>
</template>

<script lang="ts" setup>
import { UserService } from '@/api/modules/common'
import { Login } from '@/api/interface/index' // import type 导出的类型 识别为类型
// import { onMounted, ref } from 'vue'

// 定义集合接收返回结果
const list = ref<Login.ILoginInfo['slide']>([])

onMounted(() => {
  UserService.getLoginInfo().then((res) => {
    list.value = res.slide
    console.log('getLoginInfo->', res)
  })
})
</script>

<style scoped></style>
